package com.springbootcrud.user.dao;

import com.springbootcrud.user.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 * Created by Sun on 2020/4/9.
 */
@Mapper
public interface UserDao {
    //查询所有
    List<User> getAll(@Param("content") Map map);
    //删除操作
    void delById( Integer id);
    //新增
    void save(User user);
    //根据id查询用户
    User getUserById(Integer id);
    //修改
    void updateUserById(User user);
}
